<extend name="./Application/Admin/View/base.html" />
<block name="title"><title><?php echo C(APP_NAME);?>PC端管理</title></block>
<block name="stylesheets">
<link href="__PUBLIC__/assets/css/select2.css" rel="stylesheet">

</block>
<block name="stylecss">
<style type='text/css'>
    table tr td{
        width: 80%;
    }
    table tr th{
        width: 16%;
        text-align: center;
        vertical-align: middle!important;
    }
</style>
</block>
<block name="smallmenu">
<ul class="breadcrumb">
	<li>
		<i class="ace-icon fa fa-home home-icon"></i>
		<a href="{:U('Index/index')}">主页</a>
	</li>
    <li>
		<a href="{:U('Goods/index_qp')}">曲谱列表</a>
	</li>
	<li class="active">曲谱详情</li>
</ul><!-- /.breadcrumb -->

<!-- #section:basics/content.searchbox -->
<div class="nav-search" id="nav-search"></div><!-- /.nav-search -->
</block>
<block name="content">
<form action="__CONTROLLER__/qp_edit_action" method='post' id='myformedit' enctype="multipart/form-data">
<input type="hidden" name='goods_id' value="{$goods_arr_arr.goods_id}">
<div class="row" style="margin-bottom:7px">
    <div class="col-xs-12"><span class="label label-success "><i class="ace-icon fa fa-user bigger-120"></i> 曲谱详情</span></div>
</div>
<table class="table table-striped table-bordered table-hover" >
    <tr>
        <th>曲谱编号</th>
        <td>{$goods_arr.goods_num}</td>
    </tr>
    <tr>
        <th>曲谱名称</th>
        <td>{$goods_arr.goods_name}</td>
    </tr>
    <tr>
        <th>专业</th>
        <td><?php if ($goods_arr['goods_major_id'] == 1): ?>
        电吉他
        <?php elseif ($goods_arr['goods_major_id'] == 2): ?>
        爵士鼓
        <?php elseif ($goods_arr['goods_major_id'] == 3): ?>
        电贝司
        <?php elseif ($goods_arr['goods_major_id'] == 4): ?>
        音乐理论
        <?php endif ?></td>
    </tr>
    <tr>
        <th>等级</th>
        <td>{$goods_arr.goods_level}级</td>
    </tr>
    <tr>
        <th>曲谱封面</th>
        <td><?php if (!empty($goods_arr['goods_pic'])): ?>
        <div class="row" style="margin-bottom:7px">
            <div class="col-xs-5" style='position:relative;width:580px'>
                <span class="profile-picture" style='float:left'>
                    <img id="goods" class="editable img-responsive editable-empty" src="{$goods_arr.goods_pic}" style='width:200px;height:200px'></img>
                </span>
            </div>
        </div>
        <?php endif ?></td>
    </tr>
    <tr>
        <th>曲谱价格</th>
        <td>{$goods_arr.goods_price}元</td>
    </tr>
    <tr>
        <th>曲谱简介</th>
        <td>{$goods_arr.goods_introduction}</td>
    </tr>
    <tr>
        <th>创建时间</th>
        <td>{$goods_arr.goods_time}</td>
    </tr>
    <tr>
        <td colspan="2"><span class="btn btn-sm" onClick="location.href='{:U('Goods/index_qp')}'">返回</span></td>
    </tr>
</table>
</form>
</block>
<block name="scripts">
<script src="__PUBLIC__/assets/js/select2.js"></script>
</block>
<block name="jscript">
<script script="text/javascript">
    $(function(){
        $('#menu_data').addClass('active open');
        $('#menu_qp_list').addClass('active');
    });
</script>

</block>